package com.bham.teamwork.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bham.teamwork.dao.UserDao;
import com.bham.teamwork.domain.User;
import com.bham.teamwork.service.IUserService;




/**
 * 
 * 
 * @author RuJia Li 
 * @author Alessandro Pozzer
 * @author Federico Bacci
 * 
 */
//@Transactional
@Service
public class UserServiceImpl implements IUserService {

 
	@Autowired  
    private UserDao userDao;
	
	 
	
  

    public void saveUser(User user) {
    	userDao.saveUser(user);
    }

    public User getUser(String id) {
		return userDao.getUser(id);
    }
    
    public  Map getUserMap(String id){
    	/*String sql = "SELECT * from person where id = ?";
		return baseDao.getObjectMap(sql, id);*/
    	
    	return null;
    }

    @SuppressWarnings("unchecked")
    public List<User> getUser() {
       /* List<Person> list = jdbcTemplate.query("select * from person", new PersonRowMapper());
        return list;*/
    	return null;
    }

    public void deleteUser(String id) {
        /*jdbcTemplate.update("delete from person where id = ?", new Object[] { id },
                new int[] { java.sql.Types.INTEGER });*/
    }
}
